/**
 * Copyright (c) 2007, Gaudenz Alder
 */
package com.mxgraph.util;

/**
 * Contains all global constants.
 */
public class mxEvent {

    /**
     * The constant DONE.
     */
    public static final String DONE = "done";

    /**
     * The constant ADD_CELLS.
     */
    public static final String ADD_CELLS = "addCells";

    /**
     * The constant CELLS_ADDED.
     */
    public static final String CELLS_ADDED = "cellsAdded";

    /**
     * The constant ALIGN_CELLS.
     */
    public static final String ALIGN_CELLS = "alignCells";

    /**
     * The constant CONNECT_CELL.
     */
    public static final String CONNECT_CELL = "connectCell";

    /**
     * The constant CONNECT.
     */
    public static final String CONNECT = "connect";

    /**
     * The constant CELL_CONNECTED.
     */
    public static final String CELL_CONNECTED = "cellConnected";

    /**
     * The constant FLIP_EDGE.
     */
    public static final String FLIP_EDGE = "flipEdge";

    /**
     * The constant FOLD_CELLS.
     */
    public static final String FOLD_CELLS = "foldCells";

    /**
     * The constant CELLS_FOLDED.
     */
    public static final String CELLS_FOLDED = "cellsFolded";

    /**
     * The constant GROUP_CELLS.
     */
    public static final String GROUP_CELLS = "groupCells";

    /**
     * The constant UNGROUP_CELLS.
     */
    public static final String UNGROUP_CELLS = "ungroupCells";

    /**
     * The constant REMOVE_CELLS_FROM_PARENT.
     */
    public static final String REMOVE_CELLS_FROM_PARENT = "removeCellsFromParent";

    /**
     * The constant MOVE_CELLS.
     */
    public static final String MOVE_CELLS = "moveCells";

    /**
     * The constant CELLS_MOVED.
     */
    public static final String CELLS_MOVED = "cellsMoved";

    /**
     * The constant ORDER_CELLS.
     */
    public static final String ORDER_CELLS = "orderCells";

    /**
     * The constant CELLS_ORDERED.
     */
    public static final String CELLS_ORDERED = "cellsOrdered";

    /**
     * The constant REMOVE_CELLS.
     */
    public static final String REMOVE_CELLS = "removeCells";

    /**
     * The constant CELLS_REMOVED.
     */
    public static final String CELLS_REMOVED = "cellsRemoved";

    /**
     * The constant REPAINT.
     */
    public static final String REPAINT = "repaint";

    /**
     * The constant RESIZE_CELLS.
     */
    public static final String RESIZE_CELLS = "resizeCells";

    /**
     * The constant CELLS_RESIZED.
     */
    public static final String CELLS_RESIZED = "cellsResized";

    /**
     * The constant SPLIT_EDGE.
     */
    public static final String SPLIT_EDGE = "splitEdge";

    /**
     * The constant TOGGLE_CELLS.
     */
    public static final String TOGGLE_CELLS = "toggleCells";

    /**
     * The constant CELLS_TOGGLED.
     */
    public static final String CELLS_TOGGLED = "cellsToggled";

    /**
     * The constant UPDATE_CELL_SIZE.
     */
    public static final String UPDATE_CELL_SIZE = "updateCellSize";

    /**
     * The constant LABEL_CHANGED.
     */
    public static final String LABEL_CHANGED = "labelChanged";

    /**
     * The constant ADD_OVERLAY.
     */
    public static final String ADD_OVERLAY = "addOverlay";

    /**
     * The constant REMOVE_OVERLAY.
     */
    public static final String REMOVE_OVERLAY = "removeOverlay";

    /**
     * The constant BEFORE_PAINT.
     */
    public static final String BEFORE_PAINT = "beforePaint";

    /**
     * The constant PAINT.
     */
    public static final String PAINT = "paint";

    /**
     * The constant AFTER_PAINT.
     */
    public static final String AFTER_PAINT = "afterPaint";

    /**
     * The constant START_EDITING.
     */
    public static final String START_EDITING = "startEditing";

    /**
     * The constant UNDO.
     */
    public static final String UNDO = "undo";

    /**
     * The constant REDO.
     */
    public static final String REDO = "redo";

    /**
     * The constant UP.
     */
    public static final String UP = "up";

    /**
     * The constant DOWN.
     */
    public static final String DOWN = "down";

    /**
     * The constant SCALE.
     */
    public static final String SCALE = "scale";

    /**
     * The constant TRANSLATE.
     */
    public static final String TRANSLATE = "translate";

    /**
     * The constant SCALE_AND_TRANSLATE.
     */
    public static final String SCALE_AND_TRANSLATE = "scaleAndTranslate";

    /**
     * Holds the name for the change event. First and only argument in the
     * argument array is the list of mxAtomicGraphChanges that have been
     * executed on the model.
     */
    public static final String CHANGE = "change";

    /**
     * Holds the name for the execute event. First and only argument in the
     * argument array is the mxAtomicGraphChange that has been executed on the
     * model. This event fires before the change event.
     */
    public static final String EXECUTE = "execute";

    /**
     * Holds the name for the beforeUndo event. First and only argument in the
     * argument array is the current edit that is currently in progress in the
     * model. This event fires before notify is called on the currentEdit in
     * the model.
     */
    public static final String BEFORE_UNDO = "beforeUndo";

    /**
     * Holds the name for the norify event. First and only argument in the
     * argument array is the list of mxAtomicGraphChanges that have been
     * executed on the model. This event fires after the change event.
     */
    public static final String NOTIFY = "notify";

    /**
     * Holds the name for the beginUpdate event. This event has no arguments and
     * fires after the updateLevel has been changed in model.
     */
    public static final String BEGIN_UPDATE = "beginUpdate";

    /**
     * Holds the name for the endUpdate event. This event has no arguments and fires
     * after the updateLevel has been changed in the model. First argument is the
     * currentEdit.
     */
    public static final String END_UPDATE = "endUpdate";

    /**
     * The constant INSERT.
     */
    public static final String INSERT = "insert";

    /**
     * The constant ADD.
     */
    public static final String ADD = "add";

    /**
     * The constant CLEAR.
     */
    public static final String CLEAR = "clear";

    /**
     * The constant FIRED.
     */
    public static final String FIRED = "fired";

    /**
     * The constant SELECT.
     */
    public static final String SELECT = "select";

    /**
     * Holds the name for the mark event, which fires after a cell has been
     * marked. First and only argument in the array is the cell state that has
     * been marked or null, if no state has been marked.
     * <p>
     * To add a mark listener to the cell marker:
     *
     * <code>
     * addListener(
     * mxEvent.MARK, new mxEventListener()
     * {
     * public void invoke(Object source, Object[] args)
     * {
     * cellMarked((mxCellMarker) source, (mxCellState) args[0]);
     * }
     * });
     * </code>
     */
    public static final String MARK = "mark";

    /**
     * The constant ROOT.
     */
    public static final String ROOT = "root";

    /**
     * The constant LAYOUT_CELLS.
     */
    public static final String LAYOUT_CELLS = "layoutCells";

    /**
     * The constant START.
     */
    public static final String START = "start";

    /**
     * The constant CONTINUE.
     */
    public static final String CONTINUE = "continue";

    /**
     * The constant STOP.
     */
    public static final String STOP = "stop";

}
